//员工信息
const express = require("express");
const path = require('path');
// const db = require('../db/index');
const EmployeeInfo = require("../models/employeeInfo");
const router = new express.Router();
// 员工信息提交
router.post('/employee_info', async (req, res) => {
    const result = await EmployeeInfo.create(req.body);
    res.send('员工信息提交成功！！');
})
// 员工信息查询
router.get('/employee_info_search', async (req, res) => {
    const result = await EmployeeInfo.find(req.query, {
        _id: 0,
        __v: 0
    });
    res.send(result);
})
module.exports = router;